package com.tianyi.dao.entity.sysUser;

import java.io.Serializable;
import java.util.Date;

public class SysUser implements Serializable {
    /**
     * id
     * 表字段 ：id
     *
     * @mbg.generated Tue Jun 30 23:10:32 CST 2020
     */
    private Long id;

    /**
     * 创建时间
     * 表字段 ：gmt_create
     *
     * @mbg.generated Tue Jun 30 23:10:32 CST 2020
     */
    private Date gmtCreate;

    /**
     * 修改时间
     * 表字段 ：gmt_modified
     *
     * @mbg.generated Tue Jun 30 23:10:32 CST 2020
     */
    private Date gmtModified;

    /**
     * 用户名
     * 表字段 ：user_name
     *
     * @mbg.generated Tue Jun 30 23:10:32 CST 2020
     */
    private String userName;

    /**
     * 中文用户名
     * 表字段 ：user_name_cn
     *
     * @mbg.generated Tue Jun 30 23:10:32 CST 2020
     */
    private String userNameCn;

    /**
     * 手机号
     * 表字段 ：phone
     *
     * @mbg.generated Tue Jun 30 23:10:32 CST 2020
     */
    private Long phone;

    /**
     * 邮件
     * 表字段 ：mail
     *
     * @mbg.generated Tue Jun 30 23:10:32 CST 2020
     */
    private String mail;

    /**
     * 密码
     * 表字段 ：pwd
     *
     * @mbg.generated Tue Jun 30 23:10:32 CST 2020
     */
    private String pwd;

    /**
     * 用户类型/权限
     * 表字段 ：user_type
     *
     * @mbg.generated Tue Jun 30 23:10:32 CST 2020
     */
    private String userType;

    /**
     * 状态
     * 表字段 ：status
     *
     * @mbg.generated Tue Jun 30 23:10:32 CST 2020
     */
    private String status;

    /**
     * 入职时间
     * 表字段 ：entry_time
     *
     * @mbg.generated Tue Jun 30 23:10:32 CST 2020
     */
    private Date entryTime;

    /**
     * 表字段 ：remark
     *
     * @mbg.generated Tue Jun 30 23:10:32 CST 2020
     */
    private String remark;

    /**
     * 操作人
     * 表字段 ：operator
     *
     * @mbg.generated Tue Jun 30 23:10:32 CST 2020
     */
    private Long operator;

    /**
     * 权限id
     * 表字段 ：role_id
     *
     * @mbg.generated Tue Jun 30 23:10:32 CST 2020
     */
    private Long roleId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table sys_user
     *
     * @mbg.generated Tue Jun 30 23:10:32 CST 2020
     */
    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_user
     *
     * @mbg.generated Tue Jun 30 23:10:32 CST 2020
     */
    public SysUser withId(Long id) {
        this.setId(id);
        return this;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_user
     *
     * @mbg.generated Tue Jun 30 23:10:32 CST 2020
     */
    public SysUser withGmtCreate(Date gmtCreate) {
        this.setGmtCreate(gmtCreate);
        return this;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_user
     *
     * @mbg.generated Tue Jun 30 23:10:32 CST 2020
     */
    public SysUser withGmtModified(Date gmtModified) {
        this.setGmtModified(gmtModified);
        return this;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public String getUserName() {
        return userName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_user
     *
     * @mbg.generated Tue Jun 30 23:10:32 CST 2020
     */
    public SysUser withUserName(String userName) {
        this.setUserName(userName);
        return this;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getUserNameCn() {
        return userNameCn;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_user
     *
     * @mbg.generated Tue Jun 30 23:10:32 CST 2020
     */
    public SysUser withUserNameCn(String userNameCn) {
        this.setUserNameCn(userNameCn);
        return this;
    }

    public void setUserNameCn(String userNameCn) {
        this.userNameCn = userNameCn == null ? null : userNameCn.trim();
    }

    public Long getPhone() {
        return phone;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_user
     *
     * @mbg.generated Tue Jun 30 23:10:32 CST 2020
     */
    public SysUser withPhone(Long phone) {
        this.setPhone(phone);
        return this;
    }

    public void setPhone(Long phone) {
        this.phone = phone;
    }

    public String getMail() {
        return mail;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_user
     *
     * @mbg.generated Tue Jun 30 23:10:32 CST 2020
     */
    public SysUser withMail(String mail) {
        this.setMail(mail);
        return this;
    }

    public void setMail(String mail) {
        this.mail = mail == null ? null : mail.trim();
    }

    public String getPwd() {
        return pwd;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_user
     *
     * @mbg.generated Tue Jun 30 23:10:32 CST 2020
     */
    public SysUser withPwd(String pwd) {
        this.setPwd(pwd);
        return this;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd == null ? null : pwd.trim();
    }

    public String getUserType() {
        return userType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_user
     *
     * @mbg.generated Tue Jun 30 23:10:32 CST 2020
     */
    public SysUser withUserType(String userType) {
        this.setUserType(userType);
        return this;
    }

    public void setUserType(String userType) {
        this.userType = userType == null ? null : userType.trim();
    }

    public String getStatus() {
        return status;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_user
     *
     * @mbg.generated Tue Jun 30 23:10:32 CST 2020
     */
    public SysUser withStatus(String status) {
        this.setStatus(status);
        return this;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Date getEntryTime() {
        return entryTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_user
     *
     * @mbg.generated Tue Jun 30 23:10:32 CST 2020
     */
    public SysUser withEntryTime(Date entryTime) {
        this.setEntryTime(entryTime);
        return this;
    }

    public void setEntryTime(Date entryTime) {
        this.entryTime = entryTime;
    }

    public String getRemark() {
        return remark;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_user
     *
     * @mbg.generated Tue Jun 30 23:10:32 CST 2020
     */
    public SysUser withRemark(String remark) {
        this.setRemark(remark);
        return this;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public Long getOperator() {
        return operator;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_user
     *
     * @mbg.generated Tue Jun 30 23:10:32 CST 2020
     */
    public SysUser withOperator(Long operator) {
        this.setOperator(operator);
        return this;
    }

    public void setOperator(Long operator) {
        this.operator = operator;
    }

    public Long getRoleId() {
        return roleId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_user
     *
     * @mbg.generated Tue Jun 30 23:10:32 CST 2020
     */
    public SysUser withRoleId(Long roleId) {
        this.setRoleId(roleId);
        return this;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_user
     *
     * @mbg.generated Tue Jun 30 23:10:32 CST 2020
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append(", userName=").append(userName);
        sb.append(", userNameCn=").append(userNameCn);
        sb.append(", phone=").append(phone);
        sb.append(", mail=").append(mail);
        sb.append(", pwd=").append(pwd);
        sb.append(", userType=").append(userType);
        sb.append(", status=").append(status);
        sb.append(", entryTime=").append(entryTime);
        sb.append(", remark=").append(remark);
        sb.append(", operator=").append(operator);
        sb.append(", roleId=").append(roleId);
        sb.append("]");
        return sb.toString();
    }
}